

<cfset page = viewState.getValue("page")>
<cfset appTitle = viewState.getValue("appTitle")>
<cfset title = viewState.getValue("title", "#page.getPath()#")>
<cfset webpath = viewState.getValue("webpath")>
<cfset event = viewState.getValue("event")>

<cfoutput>
<cfcontent reset="true"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" >
<head>
<title>#appTitle# | #title#</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link rel="stylesheet" href="#webpath#/stylesheets/styles.css" type="text/css" />
</head>
<body>

<div class="topLinks">
	<ul>
		<li><a href="##">Login</a></li>
		<li><a href="##">Settings</a></li>
		<li><a href="#webpath#/index.cfm/Guide">Help/Guide</a></li>
		<li class="last"><a href="#webpath#/index.cfm/About">About Trac_Fu</a></li>
	</ul>
</div>

<div id="header"><a href="#webpath#/index.cfm">#appTitle#</a></div>

<div id="tabs">
  <ul>
    <li><a href="#webpath#/index.cfm" title="Wiki"><span>Wiki</span></a></li>
    <li><a href="##" title="Timeline"><span>Timeline</span></a></li>
    <li><a href="##" title="Roadmap"><span>Roadmap</span></a></li>
    <li><a href="##" title="Browse Source"><span>Browse Source</span></a></li>
    <li><a href="##" title="View Tickets"><span>View Tickets</span></a></li>
    <li><a href="##" title="New Ticket"><span>New Ticket</span></a></li>
	<li><a href="##" title="Admin"><span>Admin</span></a></li>
  </ul>
</div>

<div id="content">
	<cfif viewCollection.exists("body")>
		<cfoutput>#viewCollection.getView("body")#</cfoutput>
	</cfif>
</div>

<cfparam name="showSidebar" default="true">
<cfif showSidebar>
<div id="menu">
	<b>Navigation</b>
	<ul>
	<li><a href="#webpath#/index.cfm">home</a></li>
	 <cfif event is not "search">
		 <li><a href="#webpath#/index.cfm?path=#urlEncodedFormat(page.getPath())#&event=edit">edit this page</a></li>
		 <li><a href="#webpath#/index.cfm?path=#urlEncodedFormat(page.getPath())#&event=pagehistory">page history</a></li>
	 </cfif>
	 <li><a href="#webpath#/index.cfm?event=showAllPages">page index</a>
	 <li><a href="#webpath#/index.cfm?event=search">search</a>
	 <li><a href="#webpath#/index.cfm?event=edit&new=true">add page</a>
	 </ul>
	<cfif viewCollection.exists("subpagelist")>
		<cfoutput><br />#viewCollection.getView("subpagelist")#</cfoutput>
	</cfif>	 
</div>
</cfif>

<div id="footer">
	Russ Johnson | <a href="mailto:russ@angry-fy.com">russ@angry-fly.com</a>
</div>

</body>
</html>
</cfoutput>

